CC=g++
AR=ar
LFLAGS=-L/home/hjbai/hongjielib/src/../libs
CFLAGS=-std=c++0x -g -c -Wall -Wno-deprecated -Wno-sign-compare -I/home/hjbai/hongjielib/src -I/home/hjbai/hongjielib/src/build-bin -I/usr/local/include 
net/rpc/rpcmessage.o: net/rpc/rpcmessage.proto
	mkdir -p build-bin/net/rpc
	protoc --cpp_out=build-bin net/rpc/rpcmessage.proto
	$(CC) $(CFLAGS) build-bin/net/rpc/rpcmessage.pb.cc -o build-bin/net/rpc/rpcmessage.o
net/rpc/rpc_service.o: net/rpc/rpc_service.cc
	mkdir -p build-bin/net/rpc
	$(CC) $(CFLAGS) net/rpc/rpc_service.cc -o build-bin/net/rpc/rpc_service.o
base/init.o: base/init.cc
	mkdir -p build-bin/base
	$(CC) $(CFLAGS) base/init.cc -o build-bin/base/init.o
net/rpc/rpc_channel.o: net/rpc/rpc_channel.cc
	mkdir -p build-bin/net/rpc
	$(CC) $(CFLAGS) net/rpc/rpc_channel.cc -o build-bin/net/rpc/rpc_channel.o
base/mutex.o: base/mutex.cc
	mkdir -p build-bin/base
	$(CC) $(CFLAGS) base/mutex.cc -o build-bin/base/mutex.o
thread/thread.o: thread/thread.cc
	mkdir -p build-bin/thread
	$(CC) $(CFLAGS) thread/thread.cc -o build-bin/thread/thread.o
net/rpc/rpc.o: net/rpc/rpc.cc
	mkdir -p build-bin/net/rpc
	$(CC) $(CFLAGS) net/rpc/rpc.cc -o build-bin/net/rpc/rpc.o
thread/timer.o: thread/timer.cc
	mkdir -p build-bin/thread
	$(CC) $(CFLAGS) thread/timer.cc -o build-bin/thread/timer.o
util/time.o: util/time.cc
	mkdir -p build-bin/util
	$(CC) $(CFLAGS) util/time.cc -o build-bin/util/time.o
net/rpc/test.o: net/rpc/test.cc
	mkdir -p build-bin/net/rpc
	$(CC) $(CFLAGS) net/rpc/test.cc -o build-bin/net/rpc/test.o
thread/executor.o: thread/executor.cc
	mkdir -p build-bin/thread
	$(CC) $(CFLAGS) thread/executor.cc -o build-bin/thread/executor.o
io/byte_stream.o: io/byte_stream.cc
	mkdir -p build-bin/io
	$(CC) $(CFLAGS) io/byte_stream.cc -o build-bin/io/byte_stream.o
net/base/connection.o: net/base/connection.cc
	mkdir -p build-bin/net/base
	$(CC) $(CFLAGS) net/base/connection.cc -o build-bin/net/base/connection.o
base/logging.o: base/logging.cc
	mkdir -p build-bin/base
	$(CC) $(CFLAGS) base/logging.cc -o build-bin/base/logging.o
base/callback.o: base/callback.cc
	mkdir -p build-bin/base
	$(CC) $(CFLAGS) base/callback.cc -o build-bin/base/callback.o
strings/numbers.o: strings/numbers.cc
	mkdir -p build-bin/strings
	$(CC) $(CFLAGS) strings/numbers.cc -o build-bin/strings/numbers.o
net/base/client_connection.o: net/base/client_connection.cc
	mkdir -p build-bin/net/base
	$(CC) $(CFLAGS) net/base/client_connection.cc -o build-bin/net/base/client_connection.o
base/cmd_flags.o: base/cmd_flags.cc
	mkdir -p build-bin/base
	$(CC) $(CFLAGS) base/cmd_flags.cc -o build-bin/base/cmd_flags.o
net/rpc/test: net/rpc/rpcmessage.o net/rpc/rpc_service.o base/init.o net/rpc/rpc_channel.o base/mutex.o thread/thread.o net/rpc/rpc.o thread/timer.o util/time.o net/rpc/test.o thread/executor.o io/byte_stream.o net/base/connection.o base/logging.o base/callback.o strings/numbers.o net/base/client_connection.o base/cmd_flags.o
	$(CC) $(LFLAGS) build-bin/net/rpc/rpcmessage.o build-bin/net/rpc/rpc_service.o build-bin/base/init.o build-bin/net/rpc/rpc_channel.o build-bin/base/mutex.o build-bin/thread/thread.o build-bin/net/rpc/rpc.o build-bin/thread/timer.o build-bin/util/time.o build-bin/net/rpc/test.o build-bin/thread/executor.o build-bin/io/byte_stream.o build-bin/net/base/connection.o build-bin/base/logging.o build-bin/base/callback.o build-bin/strings/numbers.o build-bin/net/base/client_connection.o build-bin/base/cmd_flags.o -lprotobuf -lrt -o build-bin/net/rpc/test
all: net/rpc/test
